import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import postDetail from '@/components/photo/postDetail'
import home from '@/pages/home'
import inform from '@/pages/inform'
import mine from '@/pages/mine'
import photo from '@/pages/photo'
Vue.use(Router)

export default new Router({
    routes: [
        {
            path: '/',
            component: home
        },
        {
          path:'/photo',
          component: photo
        },
        {
            path:'/inform',
            component: inform
        },
        {
            path:'/mine',
            component: mine
        },
        {
            path:'/post/postDetail',
            component:postDetail
        }
    ]
})
